﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess.Datatypes
{
    public class Good
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public decimal PriceDay { get; set; }
        public decimal Latitude { get; set; }
        public decimal Longitude { get; set; }
        public int Likes { get; set; }
        public bool UserLikes { get; set; }
        public string Url { get; set; }
        public string ImageUrl { get; set; }
        public string[] Attributes { get; set; }
        public string UserName { get; set; }

        public ICollection<Content> Contents { get; set; }
        public ICollection<NotAvailable> NotAvailables { get; set; }
        public ICollection<GoodAttribute> GoodAttributes { get; set; }

        public Good()
        {
            Contents = new HashSet<Content>();
            NotAvailables = new HashSet<NotAvailable>();
            GoodAttributes = new HashSet<GoodAttribute>();
        }

    }
}
